package com.sxpi.chapter02.oracle;

import com.alibaba.druid.pool.DruidDataSource;
import com.sxpi.chapter02.mode.IDataSource;

import javax.sql.DataSource;

/**
 * @Author: 董伟豪
 * @Date: 2023/2/5 11:14
 */
public class OracleDruidDataSource implements IDataSource {

    @Override
    public DataSource dataSource() {
        DruidDataSource druidDataSource = new DruidDataSource();
        druidDataSource.setUrl("");
        druidDataSource.setUsername("root");
        druidDataSource.setPassword("dp899556677");
        druidDataSource.setDriverClassName("com.mysql.cj.jdbc.Driver");
        return druidDataSource;
    }
}
